Repository navigation
Conversation
TypeScript 7 is the native (Go) compiler and does not ship a JS API. Following the upstream recommendation, `typescript` is aliased to `@typescript/typescript6` so tools that use the compiler API (typescript-eslint, ts-jest, ts-node, ts-json-schema-generator, Storybook) keep working, while `@typescript/native` provides the TypeScript 7 `tsc` used for type-checking. - Replace gulp-typescript with the TypeScript 7 `tsc` CLI in gulp tasks - Replace the removed `moduleResolution: node` with `bundler` in src/view - Declare `*.css` modules for side-effect CSS imports - Fix webview event handler types surfaced by the stricter resolution - Update the VS Code build task problem matcher Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: c2c54892-58d8-42e7-940b-8a0e22f9fa6d
Contributor
Author
|
Superseded by #4598 (moved to branch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps TypeScript to 7.0.2, the native (Go) compiler, which makes type-checking dramatically faster (gulp type-check tasks now take ~0.4s).
TypeScript 7.0 does not ship a JS compiler API, so following the official recommendation we install both side by side:
typescriptis aliased to@typescript/typescript6(6.0.3), so tools that use the compiler API (typescript-eslint, ts-jest, ts-node, ts-json-schema-generator, Storybook) keep working.@typescript/nativeistypescript@7.0.2and provides thetscbinary used for all type-checking (npm run check-types, gulp build/watch).Other changes
gulp-typescript(which uses the TS API) with spawning the TS 7tscCLI; removedgulp-typescriptandansi-colors. Updated the VS Code Build task problem matcher for the new output format.src/view/tsconfig.json:moduleResolution: nodeis removed in TS 7, switched tobundler. This picks up packages'exportstypings and surfaced three incorrect event handler types inRenamingInput.tsxandRAPrettyPrinter.tsx, which are fixed.noUncheckedSideEffectImportsis now on by default, so addeddeclare module "*.css"(and included it in the stories tsconfig) for side-effect CSS imports.Notes for reviewers
.vscode/settings.jsontypescript.tsdkstill resolves to the TS 6 language server. Use the TypeScript 7 VS Code extension for TS 7 in the editor.Validation
npm run build: passednpm run check-types(TS 7): passed; configs also validated withtsc6npm run lint: passednpm run test:unit: passed (644 tests)npm run test:view: passed (364 tests)npm run generate:schemas(no changes),npm run find-deadcode,npm run lint:scenarios,npm run build-storybook: passedgulp checkTypeScriptNo user-facing changes, so no changelog entry.